package com.smkj.kaoqin.modules.common.pojo.db;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yztyear
 * @since 2024-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("classes")
@Schema(description = "班级表")
public class Classes implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "班级ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "班级名称")
    private String className;

    @Schema(description = "老师ID")
    private Long teacherId;

    @Schema(description = "班级二维码")
    private String qrCode;

    @Schema(description = "教师名称")
    private String teacherName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;




}
